import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter} from 'react-router-dom';
//引入storeduix
import store from './redux/store';
//引入Provider，用于容器组件接收store
import {Provider} from 'react-redux';

import App from './App';

ReactDOM.render(
  <BrowserRouter>
        {/* 此次需要Provider包裹APP,目的是让所有的后代容器组件都能接收到store */}
    <Provider store={store}>
      <App />
    </Provider>
  </BrowserRouter>,
  document.getElementById('root')
);
